home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Standard Catalog Package / DTS AddressOMatic / Src / AddressOMaticTest.r < prev    next >
Encoding:
Text File  |  1993-10-20  |  5.2 KB  |  252 lines  |  [TEXT/KAHL]

  1. /*                                AddressOMaticTest.r                                */
  2. /*
  3.  * AddressOMaticTest.r
  4.  * Copyright © 1992-93 Apple Computer Inc. All Rights Reserved.
  5.  */
  6. #include "Types.r"
  7. #include "SysTypes.r"
  8. #define REZ 
  9. #include "AddressOMaticTest.h"
  10. #include "AddressOMaticPrivate.h"
  11.  
  12. /*
  13.  * This resource contains labels for the objects in the
  14.  * AddressOMatic dialog.
  15.  */
  16. resource 'STR#' (STRN_AOMLabels, "AddressOMatic Labels", purgeable) {
  17.     {
  18.         "Personal Catalog",
  19.         "Catalog Browser",
  20.         "Find Address",
  21.         "Done",
  22.         "To",
  23.         "Open",
  24.         "Save…",
  25.         "Find",
  26.         "Stop",
  27.         "CC",
  28.         "Bcc",
  29.         "Find",
  30.         "Search",
  31. #ifdef ENABLE_TYPEIN
  32.         "Type-in Addressing",
  33.         "Address",
  34.         "Catalog"
  35. #endif
  36.     }
  37. };
  38.  
  39. /*
  40.  * These resources contain strings for AddressOMatic balloon help.
  41.  */
  42. resource 'STR#' (STRN_BrowsePanelHelpStrings, "Browser Help", purgeable) {
  43.     {
  44.         /* 1: list of addresses */
  45.         "Lists the items available. To add an address from this list,"
  46.         " select it and click the To or CC button."
  47.         " Click option/BCC for blind copy."
  48.         " Click option/Save to save in your personal catalog.",
  49.         /* 2: popup */
  50.         "To see the contents of another catalog, folder, or disk,"
  51.         " select an item from this pop-up menu."
  52.     }
  53. };
  54.  
  55. resource 'STR#' (STRN_PDPanelHelpStrings, "Personal Catalog Help", purgeable) {
  56.     {
  57.         /* 1: list of addresses */
  58.         "Lists the addresses in your preferred personal catalog."
  59.         " To add an address from this list,"
  60.         " select it and click the To or CC button."
  61.         " Click option/BCC for blind copy.",
  62.         /* 2: popup -- can't happen */
  63.         ""
  64.     }
  65. };
  66.  
  67. resource 'STR#' (STRN_FindPanelHelpStrings, "Find Panel Help", purgeable) {
  68.     {
  69.         /* 1: addresses type-in */
  70.         "Type the address you wish to find.",
  71.         /* 2:Search menu */
  72.         "To change locations for the search, use this popup-menu.",
  73.         /* 3: Result */
  74.         "Lists the items found. To add a found address, select it and"
  75.         " click the To or CC button. You must stop the search"
  76.         " before you can add an address."
  77.     }
  78. };
  79.  
  80. /*
  81.  * The following resources are for the sample main program.
  82.  */
  83. resource 'MBAR' (MBAR_MenuBar, "Menu Bar") {
  84.     {
  85.         MENU_Apple,
  86.         MENU_File,
  87.         MENU_Edit
  88.     }
  89. };
  90.  
  91. resource 'MENU' (MENU_Apple, "Apple Menu") {
  92.     MENU_Apple,
  93.     textMenuProc,
  94.     0x7FFFFFFC,
  95.     enabled,
  96.     apple,
  97.     {
  98.         "© 1993 Apple Computer Inc.", noIcon, noKey, noMark, plain,
  99.         "-", noIcon, noKey, noMark, plain
  100.     }
  101. };
  102.  
  103. resource 'MENU' (MENU_File, "File Menu") {
  104.     MENU_File,
  105.     textMenuProc,
  106.     0x180,
  107.     enabled,
  108.     "File",
  109.     {
  110.         "New AddressOMatic Window", noIcon, "N", noMark, plain,
  111.         "Close Window", noIcon, "W", noMark, plain,
  112.         "-", noIcon, noKey, noMark, plain,
  113.         "Set User Identity…", noIcon, noKey, noMark, plain,
  114.         "-", noIcon, noKey, noMark, plain,
  115.         "Quit", noIcon, "Q", noMark, plain
  116.     }
  117. };
  118.  
  119. resource 'MENU' (MENU_Edit, "Edit Menu") {
  120.     MENU_Edit,
  121.     textMenuProc,
  122.     0x0,
  123.     enabled,
  124.     "Edit",
  125.     {
  126.         "Undo", noIcon, "Z", noMark, plain,
  127.         "-", noIcon, noKey, noMark, plain,
  128.         "Cut", noIcon, "X", noMark, plain,
  129.         "Copy", noIcon, "C", noMark, plain,
  130.         "Paste", noIcon, "V", noMark, plain,
  131.         "Clear", noIcon, noKey, noMark, plain
  132.     }
  133. };
  134.  
  135. resource 'DITL' (ALRT_NonFatal, "System Error") {
  136.     {
  137.         {84, 265, 104, 334},    Button        { enabled, "Continue"        },
  138.         {83, 185, 103, 243},    Button        { enabled, "Exit"            },
  139.         {10,  20,  42,  52},    UserItem    { disabled                    },
  140.         { 7,  74,  71, 331},    StaticText    { disabled,
  141.                                     "System Error ^0 ^1 ^2 ^3"            }
  142.     }
  143. };
  144.  
  145. resource 'DITL' (ALRT_Fatal, "Fatal System Error") {
  146.     {
  147.         {84, 265, 104, 334},    Button        { enabled, "Exit"            },
  148.         { 7,  74,  71, 331},    StaticText    { disabled,
  149.                                     "Fatal System Error ^0 ^1 ^2 ^3"    },
  150.         {10,  20,  42,  52},    UserItem    { disabled                    }
  151.     }
  152. };
  153.  
  154. resource 'DITL' (ALRT_Continue, "Continue Error") {
  155.     {
  156.         {84, 255, 104, 335},    Button        { enabled, "Continue"        },
  157.         { 7,  74,  71, 331},    StaticText    { disabled,
  158.                                     "System Error ^0 ^1 ^2 ^3"            },
  159.         {10,  20,  42,  52},    UserItem    { disabled                    }
  160.     }
  161. };
  162.  
  163. resource 'dctb' (ALRT_NonFatal, "System Error", purgeable) {
  164.     {    /* array ColorSpec: 0 elements */
  165.     }
  166. };
  167.  
  168. resource 'dctb' (ALRT_Fatal, "Fatal System Error", purgeable) {
  169.     {    /* array ColorSpec: 0 elements */
  170.     }
  171. };
  172.  
  173. resource 'dctb' (ALRT_Continue, "Continue Error", purgeable) {
  174.     {    /* array ColorSpec: 0 elements */
  175.     }
  176. };
  177.  
  178. resource 'ALRT' (ALRT_Fatal, "Fatal Error Alert") {
  179.     {89, 84, 204, 430},
  180.     ALRT_Fatal,
  181.     {
  182.         OK, visible, silent,
  183.         OK, visible, silent,
  184.         OK, visible, silent,
  185.         OK, visible, silent
  186.     }
  187. };
  188.  
  189. resource 'ALRT' (ALRT_NonFatal, "System Error Alert") {
  190.     {89, 84, 205, 427},
  191.     ALRT_NonFatal,
  192.     {    
  193.         OK, visible, silent,
  194.         OK, visible, silent,
  195.         OK, visible, silent,
  196.         OK, visible, silent
  197.     }
  198. };
  199.  
  200. resource 'ALRT' (ALRT_Continue, "Continue Alert") {
  201.     {89, 84, 204, 430},
  202.     ALRT_Continue,
  203.     {    
  204.         OK, visible, silent,
  205.         OK, visible, silent,
  206.         OK, visible, silent,
  207.         OK, visible, silent
  208.     }
  209. };
  210.  
  211. resource 'vers' (1) {
  212.     0x1,
  213.     0x0,
  214.     release,
  215.     0x0,
  216.     verUS,
  217.     "1.0",
  218.     "1.0 © 1993 Apple Computer Inc. All Rights Reserved"
  219. };
  220.  
  221. resource 'vers' (2) {
  222.     0x1,
  223.     0x0,
  224.     release,
  225.     0x0,
  226.     verUS,
  227.     "1.0",
  228.     "For PowerTalk 1.0"
  229. };
  230.  
  231. resource 'SIZE' (-1) {
  232.     reserved,
  233.     acceptSuspendResumeEvents,
  234.     reserved,
  235.     canBackground,
  236.     multiFinderAware,
  237.     backgroundAndForeground,
  238.     dontGetFrontClicks,
  239.     ignoreChildDiedEvents,
  240.     is32BitCompatible,
  241.     notHighLevelEventAware,
  242.     onlyLocalHLEvents,
  243.     notStationeryAware,
  244.     dontUseTextEditServices,
  245.     reserved,
  246.     reserved,
  247.     reserved,
  248.     393216,
  249.     393216
  250. };
  251.  
  252.